import { requestMock } from ".";


requestMock.interceptors.request.use((config) => {
    return config
})

requestMock.interceptors.response.use((response) => {
    if (response.data.code === 200) {
        return response.data.data
    }

}, (error) => {
    return Promise.reject(error)
})


export default requestMock